package io.unicorn.modules.water.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * ${comments}
 * 
 * @author LNCG
 * @email LNCG@USTL.EDU.CN
 * @date 2021-05-21 20:36:24
 */
@Data
@TableName("Gather_DB.dbo.T_DATA_ERR_2021")
public class TDataErr2021Entity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *  月份
	 */
	@TableId
	private String rowId;

	private String dataMonth;
	/**
	 * 城市
	 */
	private String cityName;
	/**
	 * 区域
	 */
	private String areaName;
	/**
	 * 分所
	 */
	private String unitName;
	/**
	 * 小区
	 */
	private String proName;
	/**
	 * 小区数
	 */
	private Integer proCount;
	/**
	 * 设备数
	 */
	private Integer deviceCount;
	/**
	 * 小区故障数
	 */
	private Integer proErr;
	/**
	 * 设备故障数
	 */
	private Integer deviceErr;
	/**
	 * 设备故障率
	 */
	private BigDecimal rateErr;

	/**
	 * 小区故障率
	 */
	private BigDecimal ratePro;

	//维护人
	private String debugerName;
	//板子数量
	private Integer boardCount;
	//异常板子数量
	private Integer boardErr;
	//超期服役小区数量
	private Integer overCount;
	//超级服役设备总数 小区*设备数目
	private Integer overDeviceCount;

	//板子故障率
	private BigDecimal boardRate;

	private Date updateTime;

	public static Map<String, String> getHeadName(){
		Map<String, String> headMap = new LinkedHashMap<String, String>();

		headMap.put("rowId","行号");
		headMap.put("dataMonth","月份");
		headMap.put("cityName","城市");
		headMap.put("areaName","区域");
		headMap.put("unitName","分所");
		headMap.put("proName","小区");
		headMap.put("proCount","小区数");
		headMap.put("deviceCount","设备数");
		headMap.put("proErr","小区故障数");
		headMap.put("deviceErr","设备故障数");
		headMap.put("rateErr","设备故障率");
		headMap.put("ratePro","小区故障率");
		headMap.put("debugerName","维护人");
		headMap.put("boardCount","板子数量");
		headMap.put("boardErr","异常板子数量");
		headMap.put("overCount","超期服役小区数量");
		headMap.put("overDeviceCount","超级服役设备总数");
		headMap.put("boardRate","板子故障率");
		headMap.put("updateTime","更新日期");

		return headMap;
	};

}
